package com.tl.sun.model;

import com.google.gson.annotations.SerializedName;
import com.mcxtzhang.indexlib.IndexBar.bean.BaseIndexPinyinBean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by apple on 17/3/24.
 */

public class NewLineMode {

    private String ret;
    private String code;
    private String msg;
    private int timestamp;
    @SerializedName("ret_data")
    private List<RetDataBean> data;

    public String getRet() {
        return ret;
    }

    public void setRet(String ret) {
        this.ret = ret;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public List<RetDataBean> getData() {
        return data;
    }

    public void setData(List<RetDataBean> data) {
        this.data = data;
    }

    public static class RetDataBean extends BaseIndexPinyinBean {

        private boolean isShow;
        private String province;
        private boolean isTop;//是否是最上面的 不需要被转化成拼音的
        private List<ServListBean> serv_list;

        public boolean isShow() {
            return isShow;
        }

        public void setShow(boolean show) {
            isShow = show;
        }

        public String getProvince() {
            return province;
        }

        public void setProvince(String province) {
            this.province = province;
        }

        public List<ServListBean> getServ_list() {
            return serv_list;
        }

        public void setServ_list(List<ServListBean> serv_list) {
            this.serv_list = serv_list;
        }

        @Override
        public String getTarget() {
            return province;
        }

        @Override
        public boolean isNeedToPinyin() {
            return !isTop;
        }


        @Override
        public boolean isShowSuspension() {
            return !isTop;
        }

        public static class ServListBean implements Serializable {

            private int id;
            private String sn;
            private String is_static;
            private String pc_support;
            private String app_support;
            private String plugin_support;
            private String ios_support;
            private String android_support;
            private int status;
            private String line_level;
            private String name;
            private String ip;
            private String ip_num;
            private String pass_code;
            private String is_super;
            private int conn_type;
            private Object port;
            private int sort;
            private int load;
            private String country;
            private String province;
            private String city;
            private String online;
            private String desc;
            private String agreement;
            private Object update_time;
            private Object create_time;

            @SerializedName("agree_type")
            private String agreeType;
            @SerializedName("new_port")
            private String newPort;
            @SerializedName("proxy_ip")
            private String proxyIp;
            @SerializedName("proxy_port")
            private String proxyPort;


            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getSn() {
                return sn;
            }

            public void setSn(String sn) {
                this.sn = sn;
            }

            public String getIs_static() {
                return is_static;
            }

            public void setIs_static(String is_static) {
                this.is_static = is_static;
            }

            public String getPc_support() {
                return pc_support;
            }

            public void setPc_support(String pc_support) {
                this.pc_support = pc_support;
            }

            public String getApp_support() {
                return app_support;
            }

            public void setApp_support(String app_support) {
                this.app_support = app_support;
            }

            public String getPlugin_support() {
                return plugin_support;
            }

            public void setPlugin_support(String plugin_support) {
                this.plugin_support = plugin_support;
            }

            public String getIos_support() {
                return ios_support;
            }

            public void setIos_support(String ios_support) {
                this.ios_support = ios_support;
            }

            public String getAndroid_support() {
                return android_support;
            }

            public void setAndroid_support(String android_support) {
                this.android_support = android_support;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getLine_level() {
                return line_level;
            }

            public void setLine_level(String line_level) {
                this.line_level = line_level;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getIp() {
                return ip;
            }

            public void setIp(String ip) {
                this.ip = ip;
            }

            public String getIp_num() {
                return ip_num;
            }

            public void setIp_num(String ip_num) {
                this.ip_num = ip_num;
            }

            public String getPass_code() {
                return pass_code;
            }

            public void setPass_code(String pass_code) {
                this.pass_code = pass_code;
            }

            public String getIs_super() {
                return is_super;
            }

            public void setIs_super(String is_super) {
                this.is_super = is_super;
            }

            public int getConn_type() {
                return conn_type;
            }

            public void setConn_type(int conn_type) {
                this.conn_type = conn_type;
            }

            public Object getPort() {
                return port;
            }

            public void setPort(Object port) {
                this.port = port;
            }

            public int getSort() {
                return sort;
            }

            public void setSort(int sort) {
                this.sort = sort;
            }

            public int getLoad() {
                return load;
            }

            public void setLoad(int load) {
                this.load = load;
            }

            public String getCountry() {
                return country;
            }

            public void setCountry(String country) {
                this.country = country;
            }

            public String getProvince() {
                return province;
            }

            public void setProvince(String province) {
                this.province = province;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public String getOnline() {
                return online;
            }

            public void setOnline(String online) {
                this.online = online;
            }

            public String getDesc() {
                return desc;
            }

            public void setDesc(String desc) {
                this.desc = desc;
            }

            public String getAgreement() {
                return agreement;
            }

            public void setAgreement(String agreement) {
                this.agreement = agreement;
            }

            public Object getUpdate_time() {
                return update_time;
            }

            public void setUpdate_time(Object update_time) {
                this.update_time = update_time;
            }

            public Object getCreate_time() {
                return create_time;
            }

            public void setCreate_time(Object create_time) {
                this.create_time = create_time;
            }

            public String getAgreeType() {
                return agreeType;
            }

            public void setAgreeType(String agreeType) {
                this.agreeType = agreeType;
            }

            public String getNewPort() {
                return newPort == null ? "" : newPort;
            }

            public void setNewPort(String newPort) {
                this.newPort = newPort;
            }

            public String getProxyIp() {
                return proxyIp == null ? "" : proxyIp;
            }

            public void setProxyIp(String proxyIp) {
                this.proxyIp = proxyIp;
            }

            public String getProxyPort() {
                return proxyPort == null ? "" : proxyPort;
            }

            public void setProxyPort(String proxyPort) {
                this.proxyPort = proxyPort;
            }
        }
    }
}
